package cn.fl.fgi.service.impl;

import cn.cmm.base.framework.exception.BaseException;
import cn.fl.fgi.api.IFgiTranInfoApiService;
import cn.fl.fgi.api.condition.FgiTranInfoQueryCondition;
import cn.fl.fgi.api.dto.FgiTranInfoDTO;
import cn.fl.fgi.service.IFgiTranInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version V1.0
 * @description 交易流水信息
 */
@Service
public class FgiTranInfoServiceImpl implements IFgiTranInfoService {

    @Autowired
    private IFgiTranInfoApiService fgiTranInfoApiService;

    @Override
    public List<FgiTranInfoDTO> selectFgiTranInfoList(String busSourceId, String busSource, String busSourceType) throws BaseException {
        FgiTranInfoQueryCondition condition = new FgiTranInfoQueryCondition();
        condition.setBusSourceId(busSourceId);
        condition.setBusSource(busSource);
        condition.setBusSourceType(busSourceType);
        return this.fgiTranInfoApiService.selectListBySourceId(condition);
    }
}
